import 'package:flutter_taotaoshipin/generated/json/base/json_convert_content.dart';
import 'package:flutter_taotaoshipin/model/interact_user_feedback_list_entity.dart';

InteractUserFeedbackListEntity $InteractUserFeedbackListEntityFromJson(
    Map<String, dynamic> json) {
  final InteractUserFeedbackListEntity interactUserFeedbackListEntity = InteractUserFeedbackListEntity();
  final int? mid = jsonConvert.convert<int>(json['mid']);
  if (mid != null) {
    interactUserFeedbackListEntity.mid = mid;
  }
  final String? feedbackTitle = jsonConvert.convert<String>(
      json['feedback_title']);
  if (feedbackTitle != null) {
    interactUserFeedbackListEntity.feedbackTitle = feedbackTitle;
  }
  final String? feedbackText = jsonConvert.convert<String>(
      json['feedback_text']);
  if (feedbackText != null) {
    interactUserFeedbackListEntity.feedbackText = feedbackText;
  }
  final String? replyText = jsonConvert.convert<String>(json['reply_text']);
  if (replyText != null) {
    interactUserFeedbackListEntity.replyText = replyText;
  }
  final int? ctime = jsonConvert.convert<int>(json['ctime']);
  if (ctime != null) {
    interactUserFeedbackListEntity.ctime = ctime;
  }
  final int? utime = jsonConvert.convert<int>(json['utime']);
  if (utime != null) {
    interactUserFeedbackListEntity.utime = utime;
  }
  return interactUserFeedbackListEntity;
}

Map<String, dynamic> $InteractUserFeedbackListEntityToJson(
    InteractUserFeedbackListEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['mid'] = entity.mid;
  data['feedback_title'] = entity.feedbackTitle;
  data['feedback_text'] = entity.feedbackText;
  data['reply_text'] = entity.replyText;
  data['ctime'] = entity.ctime;
  data['utime'] = entity.utime;
  return data;
}

extension InteractUserFeedbackListEntityExtension on InteractUserFeedbackListEntity {
  InteractUserFeedbackListEntity copyWith({
    int? mid,
    String? feedbackTitle,
    String? feedbackText,
    String? replyText,
    int? ctime,
    int? utime,
  }) {
    return InteractUserFeedbackListEntity()
      ..mid = mid ?? this.mid
      ..feedbackTitle = feedbackTitle ?? this.feedbackTitle
      ..feedbackText = feedbackText ?? this.feedbackText
      ..replyText = replyText ?? this.replyText
      ..ctime = ctime ?? this.ctime
      ..utime = utime ?? this.utime;
  }
}